﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="Query_Log.aspx.cs" Inherits="MsgCenter.Web.Pages.Query.Query_Log" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headerContent" runat="server">
    <script type="text/javascript" src="<%=ResolveClientUrl("~/JavaScript/FirePlat/assets/js/jqGrid/jquery.jqGrid.min.js") %>"></script>
    <script type="text/javascript" src="<%=ResolveClientUrl("~/JavaScript/FirePlat/assets/js/jqGrid/i18n/grid.locale-cn.js") %>"></script>
    <script type="text/javascript" src="<%=ResolveClientUrl("~/JavaScript/FirePlat/assets/js/jqGrid/myJqgrid.js") %>"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <table id="grid-table">
                </table>
                <div id="grid-pager">
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        var gridTableID = 'grid-table';
        var gridPagerID = 'grid-pager';
        var varModuleID = "<%=strRequestID %>";
        jQuery(function ($) {
            var colNames = ['ID', '手机号', 'QQ', 'RTX', '微信', '发送日期', '发送内容', '发送人', '发送类型']; //, ' '
            var colModel = [
				{ name: 'ID', index: 'ID', width: 60, editable: false, hidden: true },
				{ name: 'Mobile', index: 'Mobile1', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} }, 
				{ name: 'QQ', index: 'QQ', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} },
				{ name: 'RtxLoginName', index: 'RtxLoginName', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} },
				{ name: 'WebChat', index: 'WebChat', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} },
                { name: 'SendDate', index: 'SendDate', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'lt', 'le', 'gt', 'ge'], dataInit: GridSelectDatePick} },
				{ name: 'SendMessage', index: 'SendMessage', width: 80, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} },
                { name: 'SendUserName', index: 'SendUserName', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} },
                { name: 'SendType', index: 'SendType', width: 30, editable: false, stype: 'text', searchoptions: { sopt: ['eq', 'ne', 'cn', 'nc']} }
			];
            var dfop =
            {
                rownumbers: true,
                IsMultiSelect: false,
                GridID: gridTableID,
                GridPagerID: gridPagerID,
                Url: "../../Handlers/Handler_Query.ashx?method=GetQueryLogList",
                ColNames: colNames,
                ColModel: colModel,
                Caption: "消息日志列表",
                SortName: "SendDate",
                Height: 355,
                OndblClickRow: null
            };
            showJqGrid(dfop);
        });
    </script>
</asp:Content>
